import Vue from 'vue'
import Router from 'vue-router'
import Login from "../components/Login";
import Manager from "../components/Manager";
import Main from "../components/Main";
import UpdatePwd from "../components/user/UpdatePwd";
import ClassList from "../components/student/ClassList";
import AddClass from "../components/student/AddClass";
import StudentList from "../components/student/StudentList";
import AddStudent from "../components/student/AddStudent";
import Users from "../components/student/Users";
import ShowNews from "../components/student/ShowNews";
import AddRenmin from "../components/student/AddRenmin";
import UserManager from "../components/UserManager";
import BaoGuang from "../components/student/BaoGuang";
import HuiSheng from "../components/student/HuiSheng";
import AddDanwei from "../components/student/AddDanwei";
import ShowBaoGuang from "../components/student/ShowBaoGuang";
import ShowHuiSheng from "../components/student/ShowHuiSheng";
import ShowRenmin from "../components/student/ShowRenmin";
import UpdateNews from "../components/student/UpdateNews";
import UpdateBaoguang from "../components/student/UpdateBaoguang";
import UpdateHuisheng from "../components/student/UpdateHuisheng";
import ShowDanwei from "../components/student/ShowDanwei";
import AddBaoguang from "../components/student/AddBaoguang";
import AddNews from "../components/student/AddNews";
import AddHuisheng from "../components/student/AddHuisheng";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    }, {
      path: '/manager',
      name: 'Manager',
      component: Manager,
      children:[
        {path:"/user/updatepwd",component:UpdatePwd},
        {path:"/student/ClassList",component:ClassList},//公告
        {path:"/student/AddClass",component:AddClass},
        {path:"/student/StudentList",component:StudentList},
        {path:"/student/AddStudent",component:AddStudent},//政策新闻
        {path:"/student/AddRenmin",component:AddRenmin},//人民留言
        {path:"/student/BaoGuang",component:BaoGuang},//曝光台
        {path:"/student/HuiSheng",component:HuiSheng},//督察回声
        {path:"/student/AddDanwei",component:AddDanwei},//单位留言
      ]
    }, {
      path: '/UserManager',
      name: 'UserManager',
      component: UserManager,
      children:[
        {path:"/user/updatepwd",component:UpdatePwd},
        {path:"/student/Users",component:Users},//用户列表
        {path:"/student/ShowNews",component:ShowNews},//政策新闻
        {path:"/student/ShowBaoGuang",component:ShowBaoGuang},//曝光台
        {path:"/student/ShowHuiSheng",component:ShowHuiSheng},//曝光台
        {path:"/student/ShowRenmin",component:ShowRenmin},//人民问题
        {path:"/student/ShowDanwei",component:ShowDanwei},//单位问题
        {path:"/student/UpdateNews",component:UpdateNews},//新闻修改
        {path:"/student/UpdateBaoguang",component:UpdateBaoguang},//曝光修改
        {path:"/student/UpdateHuisheng",component:UpdateHuisheng},//回声修改
        {path:"/student/AddBaoguang",component:AddBaoguang},//曝光添加
        {path:"/student/AddNews",component:AddNews},//新闻添加
        {path:"/student/AddHuisheng",component:AddHuisheng},//回声添加
      ]
    }
  ]
})
